package org.example.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

@Data
@TableName("user_system")
public class UserSystem {

    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;


    @TableField("user_name")
    private String userName;


    private String password;


    @TableField("registration_time")
    private Date registrationTime;


    public UserSystem() {
    }

    public UserSystem(String userName) {
        this.userName = userName;
    }

    public UserSystem(Integer id, String password) {
        this.id = id;
        this.password = password;
    }

    public UserSystem(String userName, String password) {
        this.userName = userName;
        this.password = password;
    }

    public UserSystem(String userName, String password, Date registrationTime) {
        this.userName = userName;
        this.password = password;
        this.registrationTime = registrationTime;
    }
}